package com.banyuan.lesson.工具类.scanner;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        //这个输入中间如果有空格默认是下一次的输入
        String s1 = s.next();
        System.out.println(s1);

        //按行的输入来接受
        String s2 = s.nextLine();
        System.out.println(s2);

        int i = s.nextInt();
    }
}
